﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddProject.aspx.cs" Inherits="UserLogin_ProjectManager_AddProject" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <style type="text/css">
        .mypanel {
            width: 1500px;
            height: 800px;
        }

        .mylabel {
            margin-left: 50px;
        }

        .auto-style1 {
            width: 100%;
            height: 100%;
        }

        .mydropdownlist {
            width: 308px;
            height: 25px;
            border-width: 2px;
            border-radius: 5px;
        }

        .mytextbox {
            width: 300px;
            height: 20px;
            border-width: 2px;
            border-radius: 5px;
        }

        .mydropdownlistlanguage {
            width: 120px;
            height: 30px;
            margin-left: 0px;
            margin-right: 10px;
            margin-top: 5px;
            margin-bottom: 5px;
            border-width: 2px;
            border-radius: 5px;
        }

        .btnChange {
            width: 25px;
            height: 25px;
            border-radius: 5px;
            color: white;
            background-color: #FF6666;
            border-width: 0px;
        }

        .btnCreate {
            border-radius: 5px;
        }
    </style>

    <table class="auto-style1">
        <tr>
            <td style="background-image: url('../../Pictures/background5.jpg'); background-repeat: no-repeat; font-style: italic; font-size: 30px; color: #FFFFFF; height: 250px; background-position-x: -300px; background-position-y: -700px;">欢迎使用<br />
                &nbsp;&nbsp;&nbsp;软件管理系统<br />
                <br />
            </td>
        </tr>
        <tr>
            <td>


                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

                <asp:Panel ID="Panel1" CssClass="mypanel" runat="server" BorderWidth="0px" BackColor="#FFFFCC" Visible="true">

                    <table style="margin-left: 100px;">
                        <tr>
                            <td style="height:80px;">
                                <asp:Label ID="Label1" CssClass="mylabel" runat="server" Text="新建项目" Font-Size="X-Large" Font-Bold="True" ForeColor="#FF6666"></asp:Label>
                            </td>
                        </tr>

                        <tr>
                            <td style="text-align: center">项目名称：</td>
                            <td style="width: 550px; height: 50px">
                                <asp:TextBox ID="projectName" CssClass="mytextbox" runat="server" placeholder="请输入项目名称"></asp:TextBox>
                                <asp:RequiredFieldValidator ControlToValidate="projectName" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                            </td>

                        </tr>
                        <tr>
                            <td style="text-align: center">项目类别：</td>
                            <td style="width: 550px; height: 50px">
                                <asp:DropDownList ID="projectLevel" CssClass="mydropdownlist" runat="server">
                                    <asp:ListItem Value="Null">--选择项目级别--</asp:ListItem>
                                    <asp:ListItem>Level1</asp:ListItem>
                                    <asp:ListItem>Level2</asp:ListItem>
                                    <asp:ListItem>Level3</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ControlToValidate="projectLevel" InitialValue="Null" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center">项目经理：</td>
                            <td style="width: 550px; height: 50px">
                                <asp:TextBox ID="projectManager" CssClass="mytextbox" runat="server" Enabled="false"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center">起始日期：</td>
                            <td style="width: 550px; height: 50px">
                                <asp:TextBox ID="projectStartTime" CssClass="mytextbox" runat="server" placeholder="格式：1999-11-01"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="projectStartTime" Format="yyyy-MM-dd" />
                                <asp:RequiredFieldValidator ControlToValidate="projectStartTime" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                            </td>
                            <td style="text-align: center">结束日期：</td>
                            <td style="width: 550px; height: 50px">
                                <asp:TextBox ID="projectEndTime" CssClass="mytextbox" runat="server" placeholder="格式：1999-11-02"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="projectEndTime" Format="yyyy-MM-dd" />
                                <asp:RequiredFieldValidator ControlToValidate="projectEndTime" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>

                            <td style="text-align: center; vertical-align: top; padding-top: 15px;">项目技能：</td>
                            <td style="width: 550px; height: 50px; vertical-align: top; padding-top: 15px;">

                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:TextBox ID="projectSkill" CssClass="mytextbox" runat="server" Enabled="false"></asp:TextBox>
                                        <asp:RequiredFieldValidator ControlToValidate="projectSkill" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                                        <asp:Button ID="btnChangeSkill" CssClass="btnChange" runat="server" Text="+" Font-Bold="True" Font-Size="Medium" Visible="true" OnClick="btnChangeSkill_Click" />
                                        <asp:Button ID="btnFinishSkill" CssClass="btnChange" runat="server" Text="√" Font-Bold="True" Font-Size="Medium" Visible="false" OnClick="btnFinishSkill_Click" />

                                        <asp:Panel ID="SkillPanel" runat="server" Visible="false">
                                            <asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged">
                                                <asp:ListItem>C语言</asp:ListItem>
                                                <asp:ListItem>C++</asp:ListItem>
                                                <asp:ListItem>C#</asp:ListItem>
                                                <asp:ListItem>Java</asp:ListItem>
                                                <asp:ListItem>Python</asp:ListItem>
                                                <asp:ListItem>PHP</asp:ListItem>
                                            </asp:CheckBoxList>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </asp:UpdatePanel>

                            </td>
                            <td style="text-align: center; vertical-align: top; padding-top: 15px;">项目成员：</td>
                            <td style="width: 550px; height: 50px; vertical-align: top; padding-top: 15px;">

                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>

                                        <asp:TextBox ID="projectMember" CssClass="mytextbox" runat="server" Enabled="false"></asp:TextBox>
                                        <asp:RequiredFieldValidator ControlToValidate="projectMember" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                                        <asp:Button ID="btnChangeMember" CssClass="btnChange" runat="server" Text="√" Font-Bold="True" Font-Size="Medium" Visible="false" OnClick="btnChangeMember_Click" />
                                        <asp:Button ID="btnClear" CssClass="btnChange" runat="server" Text="×" Font-Bold="True" Font-Size="Medium" Visible="false"  OnClick="btnClear_Click" />
                                        

                                        <asp:Panel ID="MemberPanel" runat="server">
                                            <asp:DropDownList ID="language1" CssClass="mydropdownlistlanguage" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="language1_SelectedIndexChanged"></asp:DropDownList>
                                            <asp:DropDownList ID="language2" CssClass="mydropdownlistlanguage" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="language2_SelectedIndexChanged"></asp:DropDownList>
                                            <asp:DropDownList ID="language3" CssClass="mydropdownlistlanguage" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="language3_SelectedIndexChanged"></asp:DropDownList>
                                            <asp:DropDownList ID="language4" CssClass="mydropdownlistlanguage" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="language4_SelectedIndexChanged"></asp:DropDownList>
                                            <asp:DropDownList ID="language5" CssClass="mydropdownlistlanguage" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="language5_SelectedIndexChanged"></asp:DropDownList>
                                            <asp:DropDownList ID="language6" CssClass="mydropdownlistlanguage" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="language6_SelectedIndexChanged"></asp:DropDownList>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </asp:UpdatePanel>

                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center; vertical-align: top;">项目背景：</td>
                            <td style="width: 550px; height: 100px; vertical-align: top;">
                                <asp:TextBox ID="projectBackground" CssClass="mytextbox" runat="server" TextMode="MultiLine" Height="100px" placeholder="请输入项目背景，不多于50字"></asp:TextBox>
                                <asp:RequiredFieldValidator ControlToValidate="projectBackground" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td colspan="2" style="text-align: center; vertical-align: top; padding-top: 25px; width: 550px; height: 50px">
                                <asp:Button ID="btnCreate" CssClass="btnSave" runat="server" Text="新建" Width="140px" Height="40px" ForeColor="White" BackColor="#16C4AF" BorderWidth="0px" Font-Bold="True" Font-Size="Medium" OnClick="btnCreate_Click" />
                                <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="btnCreate" ConfirmText="是否确认新建的项目？" />
                            </td>
                        </tr>
                    </table>

                </asp:Panel>

            </td>
        </tr>
    </table>

</asp:Content>

